import routeComponentName from '@/config/route-component-name'

const withdrawalRouter = [
  {
    path: '/withdrawal',
    component: () => import('@/layout/index.vue'),
    name: 'withdrawal',
    meta: {
      title: '客户收款',
      icon: 'DocumentChecked',
    },
    // hidden: true,
    redirect: '/withdrawal/list',
    children: [
      // {
      //   path: 'list',
      //   component: () => import('@/views/withdrawal/list/index.vue'),
      //   name: 'withdrawalList',
      //   meta: {
      //     title: '结算列表',
      //     icon: 'DocumentChecked',
      //     componentName: routeComponentName.financialSettlement.settlementList,
      //   },
      // },
      {
        path: 'receive/payment/list',
        component: () => import('@/views/withdrawal/receive-payment/index.vue'),
        name: 'receivePaymentList',
        meta: {
          title: '收款列表',
          icon: 'DocumentChecked',
          componentName: routeComponentName.financialSettlement.receivePaymentList,
        },
      },
      // {
      //   path: 'set',
      //   component: () => import('@/views/withdrawal/set/index.vue'),
      //   name: 'withdrawalSet',
      //   meta: {
      //     title: '结算设置',
      //     icon: 'SetUp',
      //     componentName: routeComponentName.financialSettlement.settlementSet,
      //   },
      // },
    ],
  },
]

export default withdrawalRouter
